package com.ihr360.payroll.config;

import com.ihr360.commons.model.entity.BaseCode;
import com.ihr360.commons.model.type.NumOperation;
import com.ihr360.payroll.type.FieldTaxType;

import java.util.ArrayList;
import java.util.List;


public class SalaryFieldTypeEntity extends BaseCode<Long> {
    /**
     * 薪酬字段分类(大类)
     */
    private SalaryFieldCategoryEntity category;

    private boolean salaryTaxTypeRequired = true;

    private boolean customizable = true;

    /**
     * 序号
     */
    private int indexno = 1;

    public SalaryFieldCategoryEntity getCategory() {
        return category;
    }

    private NumOperation companycostop;

    private NumOperation personalsalaryop;

    private FieldTaxType fieldTaxType;

    private List<SalaryTaxTypeEntity> salaryTaxTypes = new ArrayList<>();

    public void setCategory(SalaryFieldCategoryEntity category) {
        this.category = category;
    }

    public boolean isSalaryTaxTypeRequired() {
        return salaryTaxTypeRequired;
    }

    public void setSalaryTaxTypeRequired(boolean salaryTaxTypeRequired) {
        this.salaryTaxTypeRequired = salaryTaxTypeRequired;
    }

    public boolean isCustomizable() {
        return customizable;
    }

    public void setCustomizable(boolean customizable) {
        this.customizable = customizable;
    }

    public int getIndexno() {
        return indexno;
    }

    public void setIndexno(int indexno) {
        this.indexno = indexno;
    }

    public NumOperation getCompanycostop() {
        return companycostop;
    }

    public void setCompanycostop(NumOperation companycostop) {
        this.companycostop = companycostop;
    }

    public NumOperation getPersonalsalaryop() {
        return personalsalaryop;
    }

    public void setPersonalsalaryop(NumOperation personalsalaryop) {
        this.personalsalaryop = personalsalaryop;
    }

    public FieldTaxType getFieldTaxType() {
        return fieldTaxType;
    }

    public void setFieldTaxType(FieldTaxType fieldTaxType) {
        this.fieldTaxType = fieldTaxType;
    }

    public List<SalaryTaxTypeEntity> getSalaryTaxTypes() {
        return salaryTaxTypes;
    }

    public void setSalaryTaxTypes(List<SalaryTaxTypeEntity> salaryTaxTypes) {
        this.salaryTaxTypes = salaryTaxTypes;
    }
}